﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Working.Domínio.Vendas
{
    public class VendaException: WorkingException
    {
        public VendaException(Venda venda)
            : this(venda, string.Empty) {}

        public VendaException(Venda venda, string message)
            : this(venda, message, null){}

        public VendaException(Venda venda, string message, Exception innerException) 
            : base(message, innerException) 
        {
            this.venda = venda;
        }

        public Venda Venda
        {
            get { return this.venda; }
        } private Venda venda;
    }
}
